package com.akk.utils.exception;

/**
 * Created by Administrator on 2017/10/25.
 */
public class BusinessException extends Exception {

    private String message;
    private int code;

    public BusinessException(String message){
        this.message = message;
        this.code = -1;
    }

    public BusinessException(int code,String message){
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
